package com.shensi.adminCollect.service.station.impl;

import com.shensi.adminCollect.domain.station.StationRecharge;
import com.shensi.adminCollect.domain.station.StationRechargeVo;
import com.shensi.adminCollect.mapper.station.StationRechargeMapper;
import com.shensi.adminCollect.mapper.station.StationRechargeQueryMapper;
import com.shensi.adminCollect.service.station.IStationRechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 油站充值Service业务层处理
 * 
 * @author qujia
 * @date 2022-04-17
 */
@Service
public class StationRechargeServiceImpl implements IStationRechargeService 
{
    @Autowired
    private StationRechargeMapper stationRechargeMapper;
    @Autowired
    private StationRechargeQueryMapper stationRechargeQueryMapper;

    @Override
    public List<StationRechargeVo> selectStationRechargeVoList(StationRechargeVo stationRechargeVo){
        return stationRechargeQueryMapper.selectStationRechargeVoList(stationRechargeVo);
    }

    /**
     * 查询油站充值
     * 
     * @param rechargeId 油站充值ID
     * @return 油站充值
     */
    @Override
    public StationRecharge selectStationRechargeById(Long rechargeId)
    {
        return stationRechargeMapper.selectStationRechargeById(rechargeId);
    }

    /**
     * 查询油站充值列表
     * 
     * @param stationRecharge 油站充值
     * @return 油站充值
     */
    @Override
    public List<StationRecharge> selectStationRechargeList(StationRecharge stationRecharge)
    {
        return stationRechargeMapper.selectStationRechargeList(stationRecharge);
    }

    /**
     * 新增油站充值
     * 
     * @param stationRecharge 油站充值
     * @return 结果
     */
    @Override
    public int insertStationRecharge(StationRecharge stationRecharge)
    {
        return stationRechargeMapper.insertStationRecharge(stationRecharge);
    }

    /**
     * 修改油站充值
     * 
     * @param stationRecharge 油站充值
     * @return 结果
     */
    @Override
    public int updateStationRecharge(StationRecharge stationRecharge)
    {
        return stationRechargeMapper.updateStationRecharge(stationRecharge);
    }

    /**
     * 批量删除油站充值
     * 
     * @param rechargeIds 需要删除的油站充值ID
     * @return 结果
     */
    @Override
    public int deleteStationRechargeByIds(Long[] rechargeIds)
    {
        return stationRechargeMapper.deleteStationRechargeByIds(rechargeIds);
    }

    /**
     * 删除油站充值信息
     * 
     * @param rechargeId 油站充值ID
     * @return 结果
     */
    @Override
    public int deleteStationRechargeById(Long rechargeId)
    {
        return stationRechargeMapper.deleteStationRechargeById(rechargeId);
    }
}
